<?php
include('includes/base.php');
include('includes/libraries/loader.php');

// Globally available libraries and helpers
load()->helper('url');
load()->helper('method');
load()->library('template');

// Call a controller or display the "index" view
if (url(1)) {
	load()->controller(url(1));
	// Call controller method
	callMethod();
}
else template()->draw('index');
?>